package com.carleasoft.mps.cms.business.fileUpload.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.carleasoft.mps.cms.business.fileUpload.bean.entity.InformationLibrary;
import com.carleasoft.mps.cms.business.fileUpload.bean.po.InformationLibraryPo;
import com.carleasoft.mps.cms.business.fileUpload.bean.po.LabelVo;
import com.carleasoft.mps.cms.business.fileUpload.bean.vo.InformationLibraryVo;
import com.carleasoft.mps.core.user.UserCacheData;

import java.util.List;

/**
 * @author yanghao
 * @date 2022-02-17 16:33
 * @project mps
 */
public interface InformationLibraryService extends IService<InformationLibrary> {
    Boolean add(InformationLibraryPo informationLibraryPo, UserCacheData user);

    Page pageQuery(Page page, InformationLibraryPo informationLibraryPo);

    Boolean delete(String id, UserCacheData userInfo);

    List<LabelVo> labelList();

    Page<InformationLibraryVo> eipPage(Page page, InformationLibraryPo informationLibraryPo);

    InformationLibrary selectById(InformationLibraryPo informationLibraryPo);

    boolean isTop(InformationLibraryPo informationLibraryPo);

    Boolean updateInformation(InformationLibraryPo informationLibraryPo, UserCacheData user);
}
